<?php

namespace app\manage\controller\notice;

use app\manage\controller\Base;


class Show extends Base
{

    public function index(){
        $params = $this->request->param();
        // 筛选参数
        $whereFields = ['admin_id','page','start','end','limit'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

        // 页面信息
        $pageData = ['title'=>'公告管理'];

        $this->assign('pageData',$pageData);
        $this->assign('whereData',$whereData);
        return view();
    }

    public function publish(){
    	// 页面信息
        $pageData = ['title'=>'发布公告'];

        $this->assign('pageData',$pageData);
        return view();
    }

    public function detail(){
        $params = $this->request->param();
        $id = isset($params['id'])?$params['id']:0;

        // 页面信息
        $pageData = ['title'=>'公告详情'];

        $this->assign('pageData',$pageData);
        $this->assign('id',$id);
        return view();
    }
    
}